#ifndef SHARED_H_
#define SHARED_H_

//#define F_CPU	14745600
#define BAUD	57600

#define SendString(x) SendBuffer(x,sizeof(x))

#define RX_SIZE 4

#define SETBIT(ADDRESS,BIT) (ADDRESS |= (1<<BIT))
#define CLEARBIT(ADDRESS,BIT) (ADDRESS &= ~(1<<BIT))
#define FLIPBIT(ADDRESS,BIT) (ADDRESS ^= (1<<BIT))
#define CHECKBIT(ADDRESS,BIT) (ADDRESS & (1<<BIT))
#define MSKBIT(ADDRESS,BIT) (ADDRESS & ~(1<<BIT))

#define nop()  __asm__ __volatile__("nop")

#define OUT_PORT PORTB
#define OUT_DDR DDRB
#define OUT_PIN PINB
#define MCLR PB3
#define PGD PB2
#define PGC PB1



#endif /* SHARED_H_ */
